package com.jiyun.service;

import com.jiyun.model.Game;
import com.jiyun.model.GameDto;
import com.jiyun.model.Team;
import com.jiyun.model.User;
import com.jiyun.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author 朱庆辉
 * @Date 2023/7/28 16:05
 * @Email 1018276870@qq.com
 */
@FeignClient("day14-zhuqinghui-client-dev")
public interface CloginService {
    @PostMapping("client/login")
    public R login(@RequestBody User user);

    @GetMapping("client/getUid")
    public R getUid();

    @GetMapping("client/findAllCourse")
    public Integer findAllCourse();


    @GetMapping("client/findAllTrain")
    public Integer findAllTrain();

    @GetMapping("client/findAllGame")
    public Integer findAllGame();

    @GetMapping("client/findAllDate")
    public List<Game> findAllDate();

    @GetMapping("client/findAllGameList")
    public List<Game> findAllGameList(@RequestParam(value = "gameDto") GameDto gameDto);

    @GetMapping("client/setPoster")
    public void setPoster(@RequestParam(value = "name") String name);

    @GetMapping("client/findAllTeam")
    public List<Team> findAllTeam();

}
